#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "ngine/ngine.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    QString username;
    QString chatData;

    void handleMessage(NGMessage *msg);
    void printNormal(QString str);
    void printNotice(QString str);
    void printWhisper(QString str);

public slots:
    void checkMessage();
    void sendClicked();
};

#endif // MAINWINDOW_H
